﻿@model GameSchool.Models.Course

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/Content/css/newsform.css" />

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Búa til </legend>

        <div class="editor-label">
            <h2>Áfanganafn</h2>
        </div>
        <div class="editor-field">
            @Html.LabelFor(model => model.Name)
        </div>

        <div class="editor-label">
           <h2>Áfangalýsing</h2>
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Descr, new { style = "Width: 100%; resize: none;" })
            @Html.ValidationMessageFor(model => model.Descr)
        </div>

       <section class="buttonfield"> 
        <section class="one-third last">
                <input type="submit" value="Vista" class="sendbutton" name="sendbutton" /> 
             </section>  
             
        <section class="one-third">       
                 <a href="@Url.Action("Index", "Home")"><button class="backbutton">Hætta við</button></a>
             </section>
        </section>
             <div class="validation-message">
                <p>
                   @Html.ValidationSummary(true, "Breyting tókst ekki.")
                </p>
            </div>        
          
    </fieldset>
}

